package cn.edu.zafu.bigdata.x.sxy;

public class ScoreValidator {
    public static void checkScore(double score) throws InvalidScoreException {
        if (score < 0 || score > 100) {
            throw new InvalidScoreException("分数必须在0到100之间。");
        }
        System.out.println("分数有效：" + score);
    }
}
